package _电影院抢票案例;

public class Person {
    private String name;
    private boolean isBuySuccess;
    private String seat;


    public Person() {
    }

    public Person(String name, boolean isBuySuccess, String seat) {
        this.name = name;
        this.isBuySuccess = isBuySuccess;
        this.seat = seat;
    }

    /**
     * 获取
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * 设置
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取
     * @return isBuySuccess
     */
    public boolean isIsBuySuccess() {
        return isBuySuccess;
    }

    /**
     * 设置
     * @param isBuySuccess
     */
    public void setIsBuySuccess(boolean isBuySuccess) {
        this.isBuySuccess = isBuySuccess;
    }

    /**
     * 获取
     * @return seat
     */
    public String getSeat() {
        return seat;
    }

    /**
     * 设置
     * @param seat
     */
    public void setSeat(String seat) {
        this.seat = seat;
    }

    public String toString() {
        return "Person{name = " + name + ", isBuySuccess = " + isBuySuccess + ", seat = " + seat + "}";
    }
}
